import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {MemberManagementComponent} from './member-management.component';

const routes: Routes = [
    {path: '', component: MemberManagementComponent,
        children: [
            {path: '', redirectTo: 'mem-member', pathMatch: 'full'},
            {path: 'mem-member', loadChildren: './mem-member/mem-member.module#MemMemberModule'},
            {path: 'mem-third-login-info', loadChildren: './mem-third-login-info/mem-third-login-info.module#MemThirdLoginInfoModule'},
            {path: 'mem-jifen', loadChildren: './mem-jifen/mem-jifen.module#MemJifenModule'},
            {path: 'mem-shipping-address', loadChildren: './mem-shipping-address/mem-shipping-address.module#MemShippingAddressModule'},
            {path: 'mem-shopping-car', loadChildren: './mem-shopping-car/mem-shopping-car.module#MemShoppingCarModule'},
            {path: 'mem-collect', loadChildren: './mem-collect/mem-collect.module#MemCollectModule'},
            {path: 'mem-point', loadChildren: './mem-point/mem-point.module#MemPointModule'},
            {path: 'mem-raffle-ticket', loadChildren: './mem-raffle-ticket/mem-raffle-ticket.module#MemRaffleTicketModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class MemberManagementRoutingModule {
}
